package com.zd.dao;

import com.github.pagehelper.Page;
import com.zd.pojo.Setmeal;
import javafx.animation.SequentialTransition;

import java.util.List;
import java.util.Map;

public interface SetmealDao {
    //添加套餐，操作这个表t_setmeal
    public void add(Setmeal setmeal);
    //添加中间表，t_setmeal_checkgroup
    public void setSetmealAndCheckGroup(Map<String, Integer> map);
    //分页查询，设置查询条件，根据条件查对应的数据
    public Page<Setmeal> findByCondition(String queryString);
    //查询所有套餐信息，返回给前端页面
    public List<Setmeal> findAll();
    //根据id查套餐详情
    public Setmeal findById(int id);
    //套餐占比统计
    public List<Map<String, Object>> findSetmealCount();
}
